<!DOCTYPE html>
<html lang="en">

<head>
    <#include "/lx/admin/components/meta.html" />
    <title>活动统计 ${metaTitleSuffix!}</title>
    <#include "/lx/admin/components/stylesheets.html" />
</head>

<body>
    <div id="app">
        <el-container>
            <#assign menuIndex="6-4" />
            <#include "/lx/admin/components/menu.html" />
            <el-container>
                <#include "/lx/admin/components/header.html" />
                <el-main>
                    <template>
                        <el-row>
                            <el-col :span="12">
                                <div class="title theme-color1">活动统计<span v-if="info.activity"> - {{ info.activity.title }}</span></div>
                            </el-col>
                        </el-row>
                        <el-row style="margin-top: 10px;">
                            <el-col :span="8" class="stat-column">
                                <div class="stat-title">按省份</div>
                                <el-table ref="provinceTable" :data="info.provinceData" tooltip-effect="dark" style="width: 100%">
                                    <el-table-column prop="province" label="省份">
                                    </el-table-column>
                                    <el-table-column prop="count" label="人数">
                                    </el-table-column>
                                </el-table>
                            </el-col>
                            <el-col :span="16" class="stat-column">
                                <div class="stat-title">按公司</div>
                                <el-table ref="companyTable" :data="info.companyData" tooltip-effect="dark" style="width: 100%">
                                    <el-table-column prop="companyName" label="公司">
                                    </el-table-column>
                                    <el-table-column prop="count" label="人数">
                                    </el-table-column>
                                </el-table>
                            </el-col>
                        </el-row>
                    </template>
                </el-main>
            </el-container>
        </el-container>
        <#include "/lx/admin/components/footer.html" />
    </div>
    <#include "/lx/admin/components/scripts.html" />
    <script>
        var vue = new Vue({
        el: '#app',
        data() {
            return {
                info: ""
            }
        },
        mounted: function() {
            this.info = ${info!'""'}
            console.log(this.info);
        },
        methods: {
        }
    })
    </script>
    <#include "/lx/admin/components/msg.html" />
    <style type="text/css">
    .title {
        font-size: 18px;
        font-weight: bold;
    }

    .operations {
        text-align: right;
    }

    .search {
        margin-top: 10px;
    }

    .stat-column {
        padding-left: 10px;
    }

    .stat-column>.stat-title {
        font-size: 14px;
        font-weight: bold;
    }
    </style>
</body>

</html>